package com.aviator.detective.script.aviator;

public class ExpressionRunException extends RuntimeException{

    private static final long serialVersionUID = 1L;
    private String errCode;
    private String errMsg;

    public ExpressionRunException(){super();}
    public ExpressionRunException(String errMsg){
        super(errMsg);
        this.errMsg = errMsg;
    }
    public ExpressionRunException(String errorCode,String errMsg){
        super(errorCode);
        this.errCode = errorCode;
        this.errMsg = errMsg;
    }
    public ExpressionRunException(String errorCode,String errMsg,Throwable cause){
        super(errorCode,cause);
        this.errCode = errorCode;
        this.errMsg = errMsg;
    }
    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    @Override
    public synchronized Throwable fillInStackTrace() {
        return this;
    }
}
